﻿# CMakeList.txt: PotatoGTK 的 CMake 项目，在此处包括源代码并定义

#cmake版本
cmake_minimum_required (VERSION 3.8)
# c++11标准
set(CMAKE_CXX_STANDARD 11)

#包含目录
INCLUDE_DIRECTORIES("glad/opengl_compatibility_4_6/include")

#需要编译的头文件、源文件
set(CompileFiles 
#glad
glad/opengl_compatibility_4_6/include/KHR/khrplatform.h
glad/opengl_compatibility_4_6/include/glad/glad.h
glad/opengl_compatibility_4_6/src/glad.c
#glm
glm/glm.hpp

"Scene.h" 
"Scene.cpp"
"ActorBase.h"
"ActorBase.cpp"
"TriangleActor.h"
"TriangleActor.cpp"
"TriangleTextureActor.h"
"TriangleTextureActor.cpp"
"Shader.h"
"Shader.cpp"
"Material.h" 
"Material.cpp"
"Camera.h" 
"Camera.cpp"
"InteractStyleInterface.h" 
"InteractStyleInterface.cpp"
"PotatoInteractStyle.h" 
"PotatoInteractStyle.cpp"
)

# 将源代码编译为静态库。
add_library(PotatoGTK STATIC ${CompileFiles})